<template>
  <div>
    <nav>
      <div class="nav_title">Icons</div>
      <div class="right_search">
        <div>
          <input type="text" placeholder="search..." />
        </div>
        <a href="javascript:;">
          <span class="iconfont icon-fanggepailie"></span>
        </a>
        <a href="javascript:;">
          <span class="iconfont icon-Pathx"></span>
        </a>
        <a href="javascript:;">
          <span class="iconfont icon-user"></span>
        </a>
      </div>
    </nav>
    <div class="tubiao">
      <div class="tu-card">
        <div class="tu-card-bg">
          <div class="tu-card-top">
            <div class="tu-car-bont">
              <h4>Material Design Icons</h4>
              <p>See all available Icons</p>
            </div>
          </div>
          <div class="tu-card-text">
            <div class="icon-flex">
              <div class="icon-item" v-for="(item,index) in icon_list" :key="index">
                <span :class="`iconfont icon-${item.text_class}`"></span>
              </div>
            </div>
          </div>
        </div>
        <div class="tu-button">
          <button>
            <span>See all icons</span>
          </button>
        </div>
      </div>
    </div>
    <Navfooter />
  </div>
</template>
<script>
import Navfooter from "@/components/Navfooter";
export default {
  name: "",
  data() {
    return {
      icon_list: [
        {
          text_class: "zifuxiao"
        },
        {
          text_class: "jialihome48"
        },
        {
          text_class: "bi"
        },
        {
          text_class: "jiaoyinzujifangke"
        },
        {
          text_class: "icon_update"
        },
        {
          text_class: "jilu"
        },
        {
          text_class: "dingwei"
        },
        {
          text_class: "Pathx"
        },
        {
          text_class: "shijian"
        },
        {
          text_class: "user"
        }
      ]
    };
  },
  components: {
    Navfooter
  }
};
</script>
<style scoped lang='less'>
nav {
  margin-bottom: 10px;
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  .nav_title {
    font-size: 18px;
  }
  .right_search {
    display: flex;
    input {
      padding: 8px 0;
      outline: none;
      border: 0;
      background-color: transparent;
      border-bottom: 1px solid #000000;
    }
    a {
      display: block;
      padding: 10px 15px;
      span {
        color: #495057;
        font-size: 20px;
      }
    }
  }
}
.tubiao {
  display: flex;
  margin-top: 50px;
  .tu-card {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    box-sizing: border-box;
    padding: 0 12px;
    .tu-card-bg {
      border-radius: 4px;
      margin: 25px 0;
      background-color: #fff;
      .tu-card-hr {
        border-color: rgba(0, 0, 0, 0.12);
        border-top: 1px solid #eee;
        margin-left: 20px;
        margin-right: 20px;
        margin-bottom: 1px;
      }
      .tu-card-action {
        margin: 0 20px 0;
        padding: 10px 0 10px;
        span {
          font-size: 12px;
          font-weight: 300px;
          color: #9e9e9e;
        }
      }
    }
    .tu-button {
      text-align: center;
      margin-bottom: 20px;
      button {
        background-color: #4caf50;
        outline: none;
        border: 0;
        font-size: 16px;
        padding: 1.125rem 2.25rem;
        line-height: 1.33333;
        border-radius: 30px;
        cursor: pointer;
        color: #fff;
      }
    }
    .tu-card-text {
      padding: 16px;
      .icon-flex {
        display: flex;
        flex-wrap: wrap;
        .icon-item {
          margin: 8px;
          span {
            font-size: 24px;
          }
        }
      }
    }
    .tu-card-top {
      max-width: calc(100% - 32px);
      position: relative;
      margin: 0 auto;
      top: -20px;
      .tu-car-bont {
        height: 80px;
        box-sizing: border-box;
        padding: 15px;
        background: linear-gradient(60deg, #66bb6a, #43a047);
        border-radius: 6px;
        h4 {
          color: #fff;
        }
        p {
          color: rgba(255, 255, 255, 0.62);
          font-size: 14px;
        }
      }
    }
  }
}
</style>
